package com.easpeed.comon.database.bean

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "table_common")
class CommonDataSqlBean {


    /**
     * 自增主键
     */
    @PrimaryKey(autoGenerate = true)
    var id: Long = 0L

    //当前登录账号
    var loginName: String? = null

    var dataType: String? = ""
    var json: String? = ""


    var updateTimeMills: Long = 0L
    var createTimeMills: Long = 0L


    init {
        updateTimeMills = System.currentTimeMillis()
        createTimeMills = System.currentTimeMillis()
    }

    override fun toString(): String {
        return "CommonDataSqlBean(id=$id, loginName=$loginName, dataType=$dataType, json=$json, updateTimeMills=$updateTimeMills, createTimeMills=$createTimeMills)\n"
    }
}